﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace z.Controllers
{
    public class OrderDetailController : Controller
    {
        //
        // GET: /OrderDetail/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Adminster()
        {
            return View();
        }
        public ActionResult _Adminster(FormCollection fc)
        {
            using (z.m.db.Database db = new m.db.Database())
            {
                int id;
                int.TryParse(fc.Get("ID"), out id);
                var orderdetail = db.Order_Detail.Where(x => x.ID == id).Single();
                db.SaveChanges();
                return View(orderdetail);
            }
        }

    }
}
